{include file="frontend/$theme/header.tpl" title="header" }
<div id="main_wrapper"align="center" class="clearfix">
<div id="inner_wapr" class="clearfix"> 
	{include file="frontend/$theme/leftmenu.tpl" title="leftmenu" }
	  <div class="right_pane">
    	<div class="banner"><img src="{$baseurl}/images/category/{$category.large_image}" /></div>
    	 
         {foreach from=$child_categories item=row}
          	<div class="main_product_pane">
                <div class="product">
                <div class="cat_box_div"> 
                 	<a href="{$baseurl}/category.php?category_id={$row.category_id}" title="{$row.category_name}">
                    {if $row.thumb_image ne '' && file_exists("`$basedir`/images/category/`$row.thumb_image`")}
                    	<img height="149" width="153" src="{$baseurl}/images/category/{$row.thumb_image}" />
                	{else} 
                    	<img height="149" width="153" src="{$baseurl}/images/noimage.png" />
                    {/if}
                    </a>
                 <a class="cat_box" href="{$baseurl}/category.php?category_id={$row.category_id}">{$row.category_name}</a> </div>
                </div>
            </div>
       	 {/foreach}
        <div class="clr"></div>
        
       {if $products|@count > 0 } 
        
        <div class="main_product_pane">
          <div class="product">
             {foreach from=$products item=row}
                <div class="product_box"> 
                    <a href="{$baseurl}/product.php?action=detail&product_id={$row.product_id}" title="{$row.name}">
                    {if $row.thumb_image ne '' && file_exists("`$basedir`/images/product/`$row.thumb_image`")}
                    	<img height="149" width="153" src="{$baseurl}/images/product/{$row.thumb_image}" />
                	{else} 
                    	<img height="149" width="153" src="{$baseurl}/images/noimage.png" />
                    {/if}
                    </a>
                
                	<a class="prod_box" href="{$baseurl}/product.php?action=detail&product_id={$row.product_id}" title="{$row.name}">{$row.name|truncate:24|lower}</a>
                   <span class="price"> Price : ${$row.price}</span>
                  <div class="ad_card">
                  	<a class="add_to_cart" href="{$baseurl}/product.php?action=detail&product_id={$row.product_id}" title="Add to cart" ><img src="{$imgurl}/add_to_card.png"></a>
                  </div>
                </div>
            {foreachelse}
            	No product available
            {/foreach}
           
          </div>
          <div class="clr">&nbsp;</div>
        </div>
        {/if}
  </div>
</div>
{include file="frontend/$theme/footer.tpl" title="footer" }